package com.suneast.suneaststore.modules.personal.order.event;

import com.suneast.suneaststore.modules.common.Flag;
import com.suneast.suneaststore.bean.personal.order.DetailBean;

public class DetailResult {
    private @Flag.Result
    final int value;
    private final DetailBean bean;
    private final String msg;

    public DetailResult(@Flag.Result int value, String msg) {
        this.value = value;
        this.bean = null;
        this.msg = msg;
    }

    public DetailResult(@Flag.Result int value, DetailBean bean) {
        this.value = value;
        this.bean = bean;
        this.msg = null; // we dont care about it
    }

    public @Flag.Result
    int getValue() {
        return value;
    }

    public String getMsg() {
        return msg;
    }

    public DetailBean getBean() {
        return bean;
    }
}
